c program to count the total digits in a given number